<?php
class BaseDb2Service extends BaseDbService
{
	public function __construct($table)
	{
		$this->dao = new Base2DbDao($table);
	}
	
	public function table($table){
		return $this->dao->table($table);
	}
	
	public function rows($condition,$start=0,$num=0)
	{
		return $this->dao->fetchRows($condition,$start,$num);
	}
	
	public function getList($condition, $start,$num)
	{
		$result['count'] 		= $this->dao->count($condition);
		if($result['count']>0)
		{
			$result['rows'] 	= $this->dao->fetchRows($condition,$start,$num);
		}
		else
		{
			$result['rows'] 	= false;
		}
		
		return $result;
	}
	
}